package com.lx.zxs.service;

import com.lx.zxs.entity.Contacts;
import com.lx.zxs.entity.User;
import com.lx.zxs.mapper.ContactsMapper;
import com.lx.zxs.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.text.SimpleDateFormat;
import java.util.*;


public interface ContactsService {


    /**
     * 根据条件查询消息
     * @param keyWords
     * @param id
     * @return
     */
    List<Contacts> getContactsByParms(String keyWords,Integer id);

    /**
     * 添加消息
     * @return
     */
    int insertConcats(Contacts contacts);

    /**
     * 修改消息
     * @param contacts
     * @return
     */
    int updateConcats(Contacts contacts);

    /**
     * 删除消息
     * @param id
     * @return
     */
    int delContacts(int id);
}